<?php
/**
 * Class Page_Be_NotFound created by Havriniuc Serghei
 * Date: 01.08.12
 * Time: 16:41
 */

class Page_Be_NotFound extends Page {

	function __construct() {
		/**
		 * In case you want to display a special CSS or JS file for any action from this controller
		 * add it here, in the constructor. Otherwise, add it in the action itself.
		 */
		self::$TPL->appendCssFile('404');
		parent::__construct();
	}

	public function defaultAction() {
		self::$DEBUG->addPrivateVar(self::$PAGE, self::$PROJECT);
		self::$TPL->setBodyTemplate('404');
		$sitemap = Utils::generateSiteMap(self::$PROJECT['pr_identifier'], self::$PROJECT['pr_country_id']);
		self::$TPL->assign('sitemap', $sitemap);
		return array(
			'type' => 'display',
			'headers' => array('HTTP/1.0 404 Not Found')
		);
	}
}
